
public class Bicycle {
	private int gears;
	private int speed;
	
	public Bicycle(int inGears) {
		gears = inGears;
		speed = 0;
	}
	
	public int getGears() {
		return gears;
	}
	
	public void pedal() {
		speed++;
	}
	
	public int getSpeed() {
		return speed;
	}
	
	public void brake() {
		speed--;
	}
}
